<template>
  <div class="http404-container">
    <div class="content">
      <div class="icon">
        <img class="icon__img" src="@/assets/404_images/404.png" alt="404" />
      </div>
      <div class="info">
        <div class="info__oops">404错误!</div>
        <div class="info__headline">找不到网页！</div>
        <div class="info__content">
          对不起，您正在寻找的页面不存在。尝试检查URL的错误，然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。
        </div>
        <RouterLink to="/" class="info__return-home"> 返回首页 </RouterLink>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.http404-container {
  width: 100%;
  height: 100%;

  .content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10vh;

    .icon {
      position: relative;
      width: 320px;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;

      &__img {
        width: 100%;
      }
    }

    .info {
      position: relative;
      width: 320px;
      overflow: hidden;

      &__oops {
        font-size: 32px;
        font-weight: bold;
        line-height: 40px;
        color: #1482f0;
        opacity: 0;
        margin-bottom: 20px;
        animation-name: slideUp;
        animation-duration: 0.5s;
        animation-fill-mode: forwards;
      }

      &__headline {
        font-size: 20px;
        line-height: 24px;
        color: #222;
        font-weight: bold;
        opacity: 0;
        margin-bottom: 10px;
        animation-name: slideUp;
        animation-duration: 0.5s;
        animation-delay: 0.1s;
        animation-fill-mode: forwards;
      }

      &__content {
        font-size: 13px;
        line-height: 21px;
        color: grey;
        opacity: 0;
        margin-bottom: 30px;
        animation-name: slideUp;
        animation-duration: 0.5s;
        animation-delay: 0.2s;
        animation-fill-mode: forwards;
      }

      &__return-home {
        display: block;
        float: left;
        width: 110px;
        height: 36px;
        background: #1482f0;
        border-radius: 100px;
        text-align: center;
        color: #ffffff;
        opacity: 0;
        font-size: 14px;
        line-height: 36px;
        cursor: pointer;
        animation-name: slideUp;
        animation-duration: 0.5s;
        animation-delay: 0.3s;
        animation-fill-mode: forwards;
      }

      @keyframes slideUp {
        0% {
          transform: translateY(60px);
          opacity: 0;
        }

        100% {
          transform: translateY(0);
          opacity: 1;
        }
      }
    }
  }
}
</style>
